﻿using EntityFramework.Entity.Core;
using Repositories.Test.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Repositories.Test.Configuration
{
    public class UserMap : EntityConfigurationBase<User>
    {
        public UserMap()
        {
            this.HasKey(p => p.UserId);
            this.Property(p => p.UserName).HasMaxLength(20);
            this.HasOptional(p => p.Department).WithMany();
            
        }
    }
}
